#include "MyMouseListener.h"

bool MyMouseListener::mouseMoved(const OIS::MouseEvent &mevt){
	if(mevt.state.buttonDown(OIS::MB_Right)){
		m_pData->m_mRotate.x = -mevt.state.Y.rel/2.0f;
		m_pData->m_mRotate.y = -mevt.state.X.rel/2.0f;
	}
	//float dzoom = mevt.state.Z.rel;
	//if(rzoom >= m_pData->m_vZoomRange.x && rzoom <= m_pData->m_vZoomRange.y){
	//	m_pData->m_fCurrentZoom += mevt.state.Z.rel;
	//	m_pData->m_pCamera->moveRelative(Vector3(0,mevt.state.Z.rel,mevt.state.Z.rel));
	//}

	return true;
}

bool MyMouseListener::mousePressed(const OIS::MouseEvent &mevt, OIS::MouseButtonID id){
	return true;
}

bool MyMouseListener::mouseReleased(const OIS::MouseEvent &mevt, OIS::MouseButtonID id){
	return true;
}
